package com.diandi.signature;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 *
 * 应用程序主入口
* @author mwz
* @create 2017-10-30 14:45
* @version V1.0.0
*/

@EnableAutoConfiguration
@SpringBootApplication
@ComponentScan
@MapperScan("com.diandi.signature.mapper")
public class Application extends SpringBootServletInitializer {

    /**
     * Main Start
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run( Application.class , args );
        System.out.println("--------------- Run Start Sucessess -------------------");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}